package com.rc.pojo.dto.activity;

import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 活动表 实体类。
 *
 * @author sym
 * @since 2024-06-05
 */
@Data
public class ActivityAddDTO {

    @ApiModelProperty("活动名称")
    private String title;

    @Size(max = 3)
    @ApiModelProperty("活动轮播图")
    private List<ImageModel> imgs;

    @ApiModelProperty("活动介绍语")
    private String description;

    @ApiModelProperty("每日库存")
    private Integer stock;

    @ApiModelProperty("活动单价")
    private BigDecimal price;

    @ApiModelProperty("活动内容")
    private String content;

    @ApiModelProperty("活动开始时间")
    private LocalDateTime beginTime;

    @ApiModelProperty("活动结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("活动所属园区")
    @NotNull
    private Long areaId;
}
